<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>别名 DateTime::sub</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.date-parse.html">« date_parse</a></li>
      <li style="float: right;"><a href="function.date-sun-info.html">date_sun_info »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.datetime.html">Date/Time 函数</a></li>
    <li>别名 DateTime::sub</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.date-sub" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">date_sub</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">date_sub</span> &mdash; <span class="dc-title">别名 <span class="methodname"><a href="datetime.sub.html" class="methodname">DateTime::sub()</a></span></span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.date-sub-description">
  <h3 class="title">说明</h3>
  <p class="para">
   此函数是该函数的别名： <span class="methodname"><a href="datetime.sub.html" class="methodname">DateTime::sub()</a></span>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.date-sub-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="datetimeimmutable.sub.html" class="function" rel="rdfs-seeAlso">DateTimeImmutable::sub()</a> - Subtracts an amount of days, months, years, hours, minutes and seconds</span></li>
    <li class="member"><span class="function"><a href="datetime.sub.html" class="function" rel="rdfs-seeAlso">DateTime::sub()</a> - 对 DateTime 对象减去一定量的日、月、年、小时、分钟和秒。</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>